{extend name="public/base"/}
{block name="content"}
<section class="content" style="height:580px">

        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title">
                    <a href="{:U('Message/index')}" class="btn btn-primary">留言管理列表</a>
                </h3>

                <h3 class="box-title">
                    <a href="{:U('Message/addmessage')}" class="btn btn-primary">增加留言</a>
                </h3>

                <h3 class="box-title">
                    <a href="{:U('Message/mType')}" class="btn btn-primary">留言类别</a>
                </h3>

                <h3 class="box-title">
                    <a href="{:U('Message/addType')}" class="btn btn-primary">添加留言类别</a>
                </h3>

                <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
                </div>
            </div>
            <!-- /.box-header -->
            <!-- form start -->

            <form action="{:U('Message/addmessage')}" method="post">
                <div class="box-body">

                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-bordered">
                                <tr>
                                    <th width="140">留言类别:</th>
                                    <td>
                                        <select name="message_type" id="select_id" class="form-control">
                                            <option value="">筛选类别</option>
                                            <?php
							$type = M('mtype')->select();
                                            ?>
                                            {volist name="type" id="data"}
                                            <option value="{$data.id}">{$data.name}</option>
                                            {/volist}
                                        </select>
                                    </td>
                                </tr>


                            </table>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <table class="table table-bordered">
                                <tr>
                                    <th width="140">标题:</th>
                                    <td><input class="form-control" type="text" name="title" value="" size="30"></td>
                                </tr>
                                <tr>
                                    <th width="140">内容:</th>
                                    <td><textarea class="form-control" rows="22" name="content"></textarea></td>
                                </tr>


                            </table>
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">确认</button>
                </div>
            </form>


        </div>
        <!-- /.box -->

    <!-- /.col -->
</section>
{/block}